using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdScanRegisterNotifyRsp;
using ExpressesClass.BestApi.Utils;
using System;

namespace ExpressesClass.BestApi.kdScanRegisterNotifyReq
{
    public class KdScanRegisterNotifyReq : BaseRequest
    {
		public string mailNo { get; set; }
		public string sendManName { get; set; }
		public string sendProvinceName { get; set; }
		public string sendCityName { get; set; }
		public string acceptManName { get; set; }
		public string acceptManPhone { get; set; }
		public string acceptProvinceName { get; set; }
		public string acceptCityName { get; set; }
		public string acceptManAddress { get; set; }
		public string sendCountyName { get; set; }
		public string acceptCountyName { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_SCAN_REGISTER_NOTIFY";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdScanRegisterNotifyRsp)) as KdScanRegisterNotifyRsp;
           }
           return JsonParser.jsonToObj<KdScanRegisterNotifyRsp>(rsp);
        }


    }
}